#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class Data
{
public:
	Data(int year = 1990, int month = 1, int day = 1)
	{
		cout << "Data(int,int,int):" << this << endl;
		_year = year;
		_month = month;
		_day = day;
	}
	Data(const Data& data)
	{
		cout << "Data(const Data& data):" << this << endl;
		_year = data._year;
		_month = data._month;
		_day = data._day;
	}
	~Data()
	{
		cout << "~Data():" << this << endl;
		_year = 0;
		_month = 0;
		_day = 0;
	}
private:
	int _year;
	int _month;
	int _day;
};
Data Test(Data d1)
{
	Data d2(d1);
	return d2;
}
int main()
{
	Data d1(2001, 05, 07);
	Test(d1);
	return 0;
}

